<%--
  Created by IntelliJ IDEA.
  User: hadoop
  Date: 17-6-13
  Time: 下午12:44
  jsp内置对象ServletContext类实例application
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>ServletContext application</title>
</head>
<body>
<%! private int i = 0; %>
<% application.setAttribute("counter",++i); %>
<p>计数器: <%=i%></p>
</body>
</html>
